﻿using System.Reflection;

#nullable disable
namespace BeetleX.XRPC
{
    internal class MethodHandler
    {
        private MethodInfo mInfo;
        private FastMethodHandler mExecute;

        public MethodHandler(MethodInfo method)
        {
            this.mExecute = ReflectionHandlerFactory.MethodHandler(method);
            this.mInfo = method;
        }

        public MethodInfo Info => this.mInfo;

        public FastMethodHandler Execute => this.mExecute;
    }
}
